package com.qu.OperatorSqlite.db;

import java.io.Serializable;

/**
 * 表(注解的使用)
 * Created by quguangle on 2017/10/26.
 */
@SuppressWarnings("all")
@Table(tableName = "Person")
public class Person implements Serializable{
    /**
     * 表的主键
     */
    @PrimaryKey(column = "id",autoincrement = true)
    private int id;

    /**
     * 姓名
     */
    @Column(column = "name",isNotNull = true)
    private String name;

    /**
     *年龄
     */
    @Column(column = "age",isNotNull = true)
    private int age;

    /**
     * 毕业学校
     */
    @Column(column = "school",isNotNull = true)
    private String school;

    /**
     * 地址
     */
    @Column(column = "address",isNotNull = true)
    private String address;
    /**
     * 擅长
     */
    @Column(column = "shanchang",isNotNull = true)
    private String shanchang;

    /**
     * 兴趣
     */
    @Column(column = "interest",isNotNull = true)
    private String interest;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getShanchang() {
        return shanchang;
    }

    public void setShanchang(String shanchang) {
        this.shanchang = shanchang;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

}
